package com.example.ddz;

import java.util.Comparator;

public class CardCompare
  implements Comparator<Card>
{
  public int compare(Card paramCard1, Card paramCard2)
  {
    Card localCard1 = paramCard1;
    Card localCard2 = paramCard2;
    int i = localCard1.num;
    int j = localCard2.num;
    int k;
    if (i > j)
      k = -1;
    while (true)
    {
      return k;
      int m = localCard1.num;
      int n = localCard2.num;
      if (m < n)
      {
        k = 1;
        continue;
      }
      int i1 = localCard1.suit;
      int i2 = localCard2.suit;
      if (i1 > i2)
      {
        k = -1;
        continue;
      }
      int i3 = localCard1.suit;
      int i4 = localCard2.suit;
      if (i3 < i4)
      {
        k = 1;
        continue;
      }
      k = 0;
    }
  }
}